<?php

/**
 *
 *
 * @version $Id$
 * @copyright 2012
 */
class RssItem {
	private $title;
	private $description;
	private $link;

	public function __construct() {
		$this->title = NULL;
		$this->description = NULL;
		$this->link = NULL;
	}

	public function getTitle() {
		return $this->title;
	}

	public function setTitle($title) {
		$this->title = $title;
	}

	public function getDescription() {
		return $this->description;
	}

	public function setDescription($description) {
		$this->description = $description;
	}

	public function getLink() {
		return $this->link;
	}

	public function setLink($link) {
		$this->link = $link;
	}
}

class RssChannel {
	private $items;

	private $title;
	private $description;
	private $link;
	private $image;

	public function __construct() {
		$this->items = array();
		$this->title = NULL;
		$this->description = NULL;
		$this->link = NULL;
		$this->image = NULL;
	}

	public function getTitle() {
		return $this->title;
	}

	public function setTitle($title) {
		$this->title = $title;
	}

	public function getDescription() {
		return $this->description;
	}

	public function setDescription($description) {
		$this->description = $description;
	}

	public function getLink() {
		return $this->link;
	}

	public function setLink($link) {
		$this->link = $link;
	}

	public function getImage() {
		return $this->image;
	}

	public function setImage($image) {
		$this->image = $image;
	}

	public function getItems() {
		return $this->items;
	}

	public function setItems($items) {
		$this->items = $items;
	}

	public function addItem($item) {
		return array_push($this->items, $item);
	}
}

?>